const { Schema, model } = require('mongoose');

//用户基本信息
const userSchema = new Schema({
    userName: Schema.Types.String,
    userPwd: Schema.Types.String,
    userInfo: {}
}, {
    timestamps: {
        createdAt: 'ct',
        updatedAt: 'ut'
    }
});

//用户名详情
const userInfoSchema = new Schema({

})

//
const userModel = model('users', userSchema);
const userInfo = model('userInfo', userSchema);

module.exports = userModel;